<!--
 * @Description: 
 * @Author: chenjiaxin
 * @Date: 2022-06-19 18:17:36
 * @LastEditTime: 2022-06-19 18:17:46
 * @FilePath: \leetcode\5_集合\index.html
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>集合</title>
  </head>
  <body>
    <script src="./01_集合的封装.js"></script>

    <script>
      var setA = new Set();
      setA.add("AAA");
      setA.add("BBB");
      setA.add("CCC");

      var setB = new Set();
      setB.add("DDD");
      setB.add("CCC");
      setB.add("AAA");

      console.log("===", setA.union(setB).values());
      console.log("===", setA.intersection(setB).values());
      console.log("===", setA.difference(setB).values());
    </script>
  </body>
</html>
